export default class Storage{
    /**
     * 存放
     * @param key
     * @param value
     */
    static set = (key, value) => {
        localStorage.setItem(key,value);
    }
    /**
     * 获取
     * @param key
     * @returns {any}
     */
    static get = (key) => {
        let str = localStorage.getItem(key) || {};
        if (str){
            return JSON.parse(str);
        }
    }
    /**
     * 移除
     * @param key
     */
    static remove = (key) => {
        localStorage.removeItem(key);
    }
}
